package com.fxkj.cloud.drms.infra.utils;

import com.google.common.util.concurrent.SettableFuture;
import lombok.Data;

import java.util.UUID;

/**
 * 异步任务上下文
 * @param <T>
 * @param <V>
 */
@Data
public class AsyncTaskContext<T extends AsyncTask, V> {

    private final UUID id;
    private final T task;
    private final SettableFuture<V> future;
    private final long createTime;
}
